from langchain.chat_models import init_chat_model

model = init_chat_model("gpt-4o-mini", model_provider="openai", api_key="你的api密钥")
response = model.invoke("你是谁")
print(response.content)
